home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / printer / jcosub26.zip / BEGINTIM.JSR < prev    next >
Text File  |  1994-01-07  |  533b  |  20 lines

  1. /* JACOsub BEGINTIME command demonstration.
  2.    This command changes the begin time for playing a script.
  3.  
  4.    BEGINTIME returns RESULT=0 if successful, or RESULT=1 if the time
  5.    string had a bad format, or 2 if there was a resolution conflict.
  6. */
  7.  
  8. if ~arg() then do ; say 'Need arguments H:MM:SS.FF and [counts/sec]' ; exit 1 ; end
  9. parse arg starttime secunits .
  10. options results
  11.  
  12. address 'JACOsub'
  13. 'BEGINTIME' starttime secunits
  14.  
  15. if result > 0 then
  16.     say 'error setting begin time'
  17. else
  18.     say 'begin time set successfully'
  19. exit result
  20.